package com.wit.witmg.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author bob
 * @since 2025-01-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TPurchase对象", description="采购计划表")
public class TPurchase implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private int id;

    @ApiModelProperty(value = "状态 未询价,已询价,采购中,入库中,已完成,作废,全部）")
    private Integer stat;

    @ApiModelProperty(value = "产品（ERP）编码")
    private String bn;

    @ApiModelProperty(value = "名称")
    private String na;

    @ApiModelProperty(value = "型号规格")
    private String size;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "计量单位")
    private String unit;

    @ApiModelProperty(value = "关联订单")
    private Integer pid;

    @ApiModelProperty(value = "需求数量")
    private Double nqt;

    @ApiModelProperty(value = "需求日期")
    private Date ndate;

    @ApiModelProperty(value = "计划采购数量")
    private Double pqt;

    @ApiModelProperty(value = "允许偏差")
    private String offset;

    @ApiModelProperty(value = "到货时间")
    private Date indate;

    @ApiModelProperty(value = "归属部门及id")
    private String belong;

    @ApiModelProperty(value = "归属部门id")
    private Integer oid;

    @ApiModelProperty(value = "录入人guid")
    private Long guid;

    private Date date;

    private Double inqt;//已入库数量

    private Integer xj;//询价人数
    private Integer bj;//报价人数
}
